package com.ssm.xm.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Data
public class Student {
    private int id;
    private String name;
    private String gender;
    private String photo;
    private String hobby;
    private String introduction;
    private Double height;
    private int schoolId;
    private int societiesId;
    private int del;
    private List<School> schoolList;

    public Student() {
    }

    public Student(String name, String gender, String photo, String hobby, String introduction, Double height, int schoolId, int societiesId, int del) {
        this.name = name;
        this.gender = gender;
        this.photo = photo;
        this.hobby = hobby;
        this.introduction = introduction;
        this.height = height;
        this.schoolId = schoolId;
        this.societiesId = societiesId;
        this.del = del;
    }

    public Student(int id, String name, String gender, String photo, String hobby, String introduction, Double height, int schoolId, int societiesId, int del) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.photo = photo;
        this.hobby = hobby;
        this.introduction = introduction;
        this.height = height;
        this.schoolId = schoolId;
        this.societiesId = societiesId;
        this.del = del;
    }
}
